import Vue from 'vue'
import Vuex from './vuexp'
import createLogger from './vuexp/plugins/logger'

import products from './modules/products'

Vue.use(Vuex);
Vue.config.debug = true;

const debug = process.env.NODE_ENV !== 'production'

export default new Vuex.Store({
    modules: {
        products
    },
    strict: debug,
    plugins: debug ? [createLogger()] : []
})

